Socket
Socket
Sign inDemoInstall

@rmwc/ripple

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/ripple

RMWC Ripple component


Version published
Weekly downloads
13K
increased by19.86%
Maintainers
1
Weekly downloads
 
Created
Source

Ripples

MDC Ripple provides the JavaScript and CSS required to provide components (or any element at all) with a material “ink ripple” interaction effect. It is designed to be efficient, uninvasive, and usable without adding any extra DOM to your elements.

  • Module @rmwc/ripple
  • Import styles:
    • Using CSS Loader
      • import '@rmwc/ripple/styles';
    • Or include stylesheets
      • '@material/ripple/dist/mdc.ripple.css'
  • MDC Docs: https://material.io/develop/web/components/ripples/

Ripples will wrap whatever child component you pass it and apply the appropriate classes and styles.

<Ripple>
  <p>Standard Ripple</p>
</Ripple>
<Ripple primary>
  <p>Primary</p>
</Ripple>
<Ripple accent>
  <p>Accent</p>
</Ripple>
<Ripple unbounded>
  <p>Unbounded</p>
</Ripple>

Ripple

A component for adding Ripples to other components.

Props

NameTypeDescription
accentundefined | false | trueMakes the ripple an accent color
disabledundefined | false | truemakes the ripple disabled
foundationRefReact.Ref<MDCRippleFoundation>Advanced: A reference to the MDCFoundation.
primaryundefined | false | trueMakes the ripple primary
surfaceundefined | false | trueFor internal use
unboundedundefined | false | trueMakes the ripple unbounded

Keywords

FAQs

Package last updated on 08 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc